<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>plc折线图</title>
</head>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
<script type="text/javascript" src="/js/echarts/echarts.min.js"></script>
<script type="text/javascript">

				var x = new Array();
				x.push(0.25);
				x.push(0.5);
				x.push(0.75);
				x.push(1.0);
				x.push(1.25);
				x.push(1.5);
				var y = new Array();
		        // 基于准备好的dom，初始化echarts实例
		        var myChart = echarts.init(document.getElementById('main'));
		        // 指定图表的配置项和数据
		        var option = {
		            title: {
		                text: 'PLC折线图'
		            },
		            tooltip: {},
		            xAxis: {
		                data: x
		            },
		            yAxis: {},
		            series: [{
		                name: '阻力值',
		                type: 'line',
		                data: [5, 20, 36, 10, 10, 20]
		            }]
		        };
		        // 使用刚指定的配置项和数据显示图表。
		        myChart.setOption(option);
		    </script>
</body>
</html>